-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query hosts dns servers and populate nodes config with it #1650
Conversation
I'm not too happy about calling |
An option might be to do that stuff as part of https://github.com/srl-labs/containerlab/blob/main/types/topology.go#L508 We maybe add the |
I don't like this feature, as it causes labs to behave differently when deployed in different environments. As a minimum it should be disabled by default, with an option/flag to enable it |
@jbemmel what do you mean? Every environment will have its own DNS servers set up. If you need to rewrite it the default servers you do that manually. As with regular docker we just let you leverage DNS servers you have in your env for srl nodes |
My concern is that this feature adds non-reproducibility - the config you end up with in the nodes is different in a behind-the-scene context dependent way. That is a problem for certain usages of Containerlab (you'll have cases where things work in one lab, and then someone deploys the exact same lab in a different context and it doesn't work) I'm saying the feature should be an explicit choice in the topology (it's like dhcp for dns server IPs) |
This particular feature is perfectly in line with containerlab promises of delivering docker UX for networking labs. |
I agree it's a nice and useful feature, I'm merely saying that imho it should be explicit (or at least have the ability to disable it if as a user I want my lab to be self-contained, free from dependencies on the environment) |
If you'd want to get rid of this you'd clear the DNS stanza with the startup config. I don't see a reason why would you do that though, buy in 1% cases that would be the way to turn this feature off or rewrite it with a list of DNS servers you want to have. I wouldn't want to introduce a flag or env var to turn this feature off until there is a legitimate use case behind it. We will document the DNS provisioning in the srl doc |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1650 +/- ##
==========================================
+ Coverage 50.88% 51.00% +0.12%
==========================================
Files 135 136 +1
Lines 13107 13162 +55
==========================================
+ Hits 6669 6713 +44
- Misses 5706 5713 +7
- Partials 732 736 +4
|
Fixing #1638